/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: OldCustomerDiscount
 * Author:   zhouheng
 * Date:     2019/5/1 20:51
 * Description: 老顾客优惠策略
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.patterns.com.zhouh.action.strategy;

/**
 * 〈一句话功能简述〉<br> 
 * 〈老顾客优惠策略〉
 *
 * @author zhouheng
 * @create 2019/5/1
 * @since 1.0.0
 */
public class OldCustomerDiscount implements Discount {

    @Override
    public int calculate(int money) {
        Double balance =  money * 0.88;

        return balance.intValue();
    }
}